package com.rayboo.tasks;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * 
 * SchedulingConfig
 * 
 * @author ray
 * @date 2016年9月8日 下午8:13:04
 *
 */
@Configuration
@EnableScheduling // 启用定时任务
public class SchedulingConfig {
	private final Logger logger = LoggerFactory.getLogger(getClass());

	//@Scheduled(cron = "0/60 * * * * ?") // 每60秒执行一次
	public void scheduler() {
		logger.info(">>>>>>>>>>>>> scheduled ... ");
	}
}
